rename v001 cluster
rename v002 hhid
rename v003 lineno

rename v024 region
rename sprov provcode
rename smunic municode
rename sbarang barancode
rename bord birthorder
rename bidx birthindex
rename b4 sex

rename b5 alive
rename b8 childage
rename v149 edcat

rename v012 womanage
g womanage2=womanage^2
rename v119 electricity
rename v120 radio
rename v121 television
rename v122 refrigerator
rename v123 bicycle
rename v124 motorbike
rename v125 car

recode electricity radio television refrigerator bicycle motorbike car (9 7=.)

rename v130 religion
rename v131 ethnicity

recode religion (99=.)
recode ethnicity (999=.)

rename v136 hhsize
rename v137 hhkidsu5
rename v138 hhwomen
rename v151 hhsex
rename v152 hhage

rename v190 wealthind
rename v191 wealthscore
g wealthscore2=wealthscore^2

sum wealthscore, d
local mean=r(mean)
local sd=r(sd)
g wealthscoreorig=wealthscore
replace wealthscore=(wealthscore-`mean')/`sd'

rename v218 nlivkids

g muslim=religion==5 if religion<.

g f_radio=v158
g f_tv=v159
recode f_* (9=.)

	
global keyvars cluster caseid hhid lineno region provcode municode baran birthorder birthindex alive childage sex edcat womanage womanage2 electricity radio television refrigerator bicycle motorbike car religion ethnicity hhsize hhkidsu5 hhwomen hhsex hhage wealthind nlivkids muslim wealthscore* f_* 
	